{namespace exports}


/**
 * Turn a string into a type link.
 * @param type The display name of the type being linked to.
 * @param kind The type of the type (class, interface, enum, tyepdef)
 * @param href The path to the type's doc page.
 * @param? anchor If the link should have a name="...", this is the anchor text.
 */
{template .typeLink autoescape="false"}
<a {if $anchor}name="{$anchor} " {/if}
   {if $href}href="{$href}"{/if} class="type-link{if $kind} {$kind}{/if}">
   {$type}
</a>
{/template}


/**
 * Create a hyperlink to the given URL.
 * @param href The document to point to.
 * @param text The text to link to.
 */
{template .genericLink autoescape="false"}
<a href="{$href}">{$text}</a>
{/template}


/**
 * Literal code blocks.
 * @param code The code text.
 */
{template .codeBlock autoescape="false"}
<code class="embedded-code">{$code}</code>
{/template}
